<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/common/common.jsp" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> 
  <head>
    <base href="<%=basePath%>" />
    <title>Building Heat Consumption Analyse</title>
    <script type="text/javascript">
		var path = "<%=basePath%>";
	</script>
	<meta http-equiv="pragma" content="no-cache" />
	<meta http-equiv="cache-control" content="no-cache" />
	<meta http-equiv="expires" content="0" />    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3" />
	<meta http-equiv="description" content="This is my page" />
	<link rel="stylesheet" type="text/css" href="<%=basePath%>beshs/css/content.css" />
	<script type="text/javascript" src="<%=basePath%>resources/jquery/jquery-1.7.2.min.js"></script>
	<!-- 页面特效 -->
	<jsp:include page="/beshs/res-refer/page-effect-reference.jsp" />
	<!-- 系统通用资源 -->
	<jsp:include page="/resources/resource-refer/common-resource-reference.jsp" />
	<!-- 报表 -->
    <jsp:include page="/resources/resource-refer/component-fusioncharts-reference.jsp" />
  </head>
  <body>
  	<p><font color="red">
   			<s:if test="measureReportInfo != null">
   				Please check the building configuration：<s:property value='measureReportInfo' />
   			</s:if>
   		</font></p>
  	<div class="content_all">
		<script type="text/javascript">
		  $(function(){
		  	var swfLoadPath = "";
		  	<s:if test="chartType == 'line'">
		  		swfLoadPath = path + "resources/fusioncharts/Line.swf";
		  	</s:if>
		  	<s:if test="chartType == 'column'">
		  		swfLoadPath = path + "resources/fusioncharts/Column3D.swf";
		  	</s:if>
		  	var chart = new FusionCharts(swfLoadPath, "tpDataMSLineChart", "98%", "60%");
			chart.addParam("wmode","Opaque"); //解决DIV弹出层被Flash覆盖(Flash置底)
			chart.setDataXML("<s:property value='chartXmlData' escape='false' />");
			chart.render("chartdiv"); 
		  });
	    </script>
		<!--查询列表-->
	  	<div class="search_table_all">
	  		<div id="chartdiv" style="position: absolute;z-index:0; height: 600px; width: 100%;"></div>
   		</div>
	</div>
  </body>
</html>
